 
package com.heima.wemedia.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;
 
public interface WmNewsService extends IService<WmNews> {
 
    /**
     * 查询文章
     * @param dto
     * @return
     */
    public ResponseResult findAll(WmNewsPageReqDto dto);


    /**
     *  发布文章或保存草稿
     * @param dto
     * @return
     */
    public ResponseResult submitNews(WmNewsDto dto);

    ResponseResult article_details(Integer id);

    ResponseResult del_news(Integer id);

    ResponseResult down_or_up(WmNewsDto dto);

    ResponseResult list_vo(NewsAuthDto dto);

    ResponseResult OneById(Integer id);

    ResponseResult AuthStatus(NewsAuthDto dto, Short wmNewsAuthFail);
}